import { defineStore } from "pinia";
import { reactive } from 'vue'
import persist  from 'pinia-plugin-persistedstate'

export const useClassStore = defineStore('class',() =>{
    const classInfo = reactive({
        // id:0,
        // username:'',
        // role:'',
        // academy_name:'',
        // subjectid:[]
        user_and_acs_id:0,//大纲id
        class_name:'',
        subject:'',
        grade_name:'',//学年
        subId:0,//科目id
        teaching_academy:'',
    })

    return{
        classInfo
    }
},
{
    persist: true
})